home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12846 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.uh.edu!usenet
  2. From: Sensarn <txs53132@bayou.uh.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: NEW Operator
  5. Date: Thu, 21 Mar 1996 15:45:47 -0800
  6. Organization: AEtna Insurance Agency
  7. Message-ID: <3151EA2B.788E@bayou.uh.edu>
  8. NNTP-Posting-Host: sip-14315.public-dialups.uh.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (Win16; I)
  13.  
  14. I am using the SMALL memory model and I would like to use NEW to 
  15. allocate from the far heap.  I am assuming that all single-data-segment 
  16. memory models automatically allocate dynamically from the near heap (ie I 
  17. cannot allocate 64016 bytes with NEW in the SMALL memory model).  I 
  18. recall someone stating that NEW can be overloaded to do far allocation in 
  19. the SMALL (and MEDIUM) memory models.  Can somebody please give me some 
  20. pointers?  I could just use farmalloc, but I hear so many people saying 
  21. that NEW is superior.
  22.  
  23. Thank you,
  24.  
  25. -- 
  26. ______________________________
  27.  
  28. Steven Sensarn
  29. E-Mail - txs53132@bayou.uh.edu
  30. ______________________________
  31.